const mysql = require("mysql2");
const connection = mysql.createConnection({
    host: "localhost",
    port: 3306,
    user: "root",
    password: "Lrq000905", // 数据库密码
    database: "my_users", // 连接的数据库
});
// 给 goods 这张表插入数据
const statement = `INSERT INTO goods SET ?;`;
const phoneJson = require("./phone.json");
for (let phone of phoneJson) {
    connection.query(statement, phone);
}
